package com.demo7;

public class AnimalDemo {

    public static void main(String[] args) {
        AnimalOperator animalOperator = new AnimalOperator();

        Animals c = new Cat();

        animalOperator.useAnimal(c);

        Animals a = animalOperator.getAnimal();

        a.eat();
    }
}
